package sctu.edu.java.year2016.team06.liuchuanjiao.day20160520.chapter3_2;

/**
 * Created by LCJ on 2016/5/22.
 * 创建两个int型变量，运用三元运算符判断两个变量是否相等，若不想等求出两个数中较大者
 */
public class Tow {
    public static void main(String[] args) {
        int a = 21;
        int b = 16;
        int c;
        c = a > b ? a : b;
        System.out.println("a和b中最大数为:" + c);
    }
}
